﻿namespace hedefgrup.reports.renault.definitions
{
    using System;
    using System.Xml;

    public class xmlNodeBasedClass
    {
        public XmlNode sourceNode;

        protected xmlNodeBasedClass(XmlNode sourceNode)
        {
            this.sourceNode = sourceNode;
        }

        public string getAttributeByName(string attributeName)
        {
            return ((this.sourceNode.Attributes[attributeName] != null) ? this.sourceNode.Attributes[attributeName].Value : string.Empty);
        }
    }
}

